package com.ruoyi.edu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.edu.mapper.EduCommunityMapper;
import com.ruoyi.edu.domain.EduCommunity;
import com.ruoyi.edu.service.IEduCommunityService;

/**
 * 小区信息Service业务层处理
 *
 * @author ruoyi
 * @date 2024-06-29
 */
@Service
public class EduCommunityServiceImpl implements IEduCommunityService {
    @Autowired
    private EduCommunityMapper eduCommunityMapper;

    /**
     * 查询小区信息
     *
     * @param id 小区信息主键
     * @return 小区信息
     */
    @Override
    public EduCommunity selectEduCommunityById(Long id) {
        return eduCommunityMapper.selectEduCommunityById(id);
    }

    /**
     * 查询小区信息列表
     *
     * @param eduCommunity 小区信息
     * @return 小区信息
     */
    @Override
    public List<EduCommunity> selectEduCommunityList(EduCommunity eduCommunity) {
        return eduCommunityMapper.selectEduCommunityList(eduCommunity);
    }

    /**
     * 新增小区信息
     *
     * @param eduCommunity 小区信息
     * @return 结果
     */
    @Override
    public int insertEduCommunity(EduCommunity eduCommunity) {
        return eduCommunityMapper.insertEduCommunity(eduCommunity);
    }

    /**
     * 修改小区信息
     *
     * @param eduCommunity 小区信息
     * @return 结果
     */
    @Override
    public int updateEduCommunity(EduCommunity eduCommunity) {
        return eduCommunityMapper.updateEduCommunity(eduCommunity);
    }

    /**
     * 批量删除小区信息
     *
     * @param ids 需要删除的小区信息主键
     * @return 结果
     */
    @Override
    public int deleteEduCommunityByIds(Long[] ids) {
        return eduCommunityMapper.deleteEduCommunityByIds(ids);
    }

    /**
     * 删除小区信息信息
     *
     * @param id 小区信息主键
     * @return 结果
     */
    @Override
    public int deleteEduCommunityById(Long id) {
        return eduCommunityMapper.deleteEduCommunityById(id);
    }
}
